//
//  EditProductDefTextVC.m
//  AFNetworking
//
//  Created by admin on 2020/4/30.
//

#import "EditProductDefTextVC.h"

@interface EditProductDefTextVC ()
@property(strong, nonatomic) UITextView *inputTF;
@end

@implementation EditProductDefTextVC

- (void)viewDidLoad {
    [super viewDidLoad];
    [self configUI];
}

-(void)configUI{
    self.title = @"添加文字";
    [self.view addSubview:self.inputTF];
}

-(UITextView *)inputTF{
    if (!_inputTF) {
        _inputTF = [UITextView new];
        
        _inputTF.backgroundColor = UIColor.lightTextColor;
    }
    return _inputTF;
}

-(void)leftNavBarTouchUpInside:(UIButton*)sender{
    if (_fineshBlock) {
        _fineshBlock(_inputTF.text);
    }
    [super leftNavBarTouchUpInside:sender];
}

-(void)viewDidLayoutSubviews{
    [super viewDidLayoutSubviews];
    [_inputTF mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(KPAND_DEF);
        make.left.mas_equalTo(KPAND_DEF);
        make.right.mas_equalTo(-KPAND_DEF);
        make.bottom.mas_equalTo(-350);
    }];
}

@end
